#include <bits/stdc++.h>
#define int __int128
using namespace std;

int n,r[100010];

inline int read(){
	int s=0;
	bool f=0;
	char c=getchar();
	while(!isdigit(c)){
		if(c=='-')f^=1;
		c=getchar();
	}
	while(isdigit(c)){
		s=(s<<1)+(s<<3)+(c^48);
		c=getchar();
	}
	return f==0?s:-s;
}

void write(int x){
	if(x<0)putchar('-'),x=-x;
	if(x>9)write(x/10);
	putchar(x%10|48);
}

signed main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	n=read();
	for(int i=1;i<=n;++i)
		r[i]=read();
	sort(r+1,r+1+n);
	int j=n,i=n,ans=n;
	while(j>0){
		while(j>0&&r[j]>=r[i])--j;
		if(j>0)--ans,--i,--j;
	}
	write(ans);
	fclose(stdin);
	fclose(stdout);
	return 0;
}
